﻿@{
    ViewBag.Title = "用户登录";
    Layout = GetPath(SystemDirectory.Shared, "_Dialog.cshtml");
}

@model LoginModel

@if (IsValided)
{
<div class="container">
    @using (Html.BeginForm())
    {
    <div><span class="left">用户名</span>@Html.TextBoxFor(model => model.UserName)</div>
    <div><span class="left">密码</span>@Html.PasswordFor(model => model.Password)</div>
    <div class="right">@Html.CheckBoxFor(model => model.AutoLogin)<label for="AutoLogin"><b>记住登录登录状态</b></label></div>
    <div class="tcenter">
        <button class="button" type="submit">登录</button>
    </div>
    }
</div>
}
